<fieldset style="border:1px dashed #d8dfe5">
    <dl class="nowrap">
        <dt>意见：</dt>
        <dd>
            <textarea name="flowMap_suggestion" rows="2" cols="50"></textarea>
        </dd>
    </dl>
</fieldset>
</div> <!-- pageFormContent div end -->
<div class="formBar">
    <ul>
        <li><div class="buttonActive">
                <div class="buttonContent">
                    <button type="submit">同意</button>
                </div>
            </div></li>
        <li onclick="processTaskJs._reject();">
            <div class="buttonActive" >
                <div class="buttonContent">
                    <button type="button">驳回</button>
                </div>
            </div>
        </li>
        <li>
            <div class="buttonActiveGrey">
                <div class="buttonContent">
                    <button type="button" class="close"><@label
                        key="cancel.B">取消</@label></button>
                </div>
            </div>
        </li>
    </ul>
</div>
</form>
<div class="tabs">
    <div class="tabsHeader">
        <div class="tabsHeaderContent">
            <ul>
                <li id="component" data-selectedid="process_hostory"
                    class="exerInputS"><a href="javascript:;" id="select1"><span>流程记录</span></a></li>
            </ul>
        </div>
    </div>
    <div class="tabsContent">
        <div>
            <table class="table" width="100%" layoutH="140">
                <thead>
                    <tr>
                        <th width="40">节点名</th>
                        <th width="80">操作人</th>
                        <th width="100">操作时间</th>
                        <th width="100">用时</th>
                        <th width="50">结果</th>
                        <th width="200">意见</th>
                    </tr>
                </thead>
                <tbody>
                    <#if historys??> <#list historys as history>
                    <tr>
                        <td>${history.taskName!''}</td>
                        <td>${history.userText!''}</td>
                        <td>${(history.checkTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                        <td>${property.useTime!''}</td>
                        <td>${history.result!''}</td>
                        <td>${property.suggestion!''}</td>
                    </tr>
                    </#list> <#else>
                    <tr>
                        <td colspan="11" class="noData">======<@label
                            key='noListData.C'>列表无数据</@label>=====</font>
                        </td>
                    </tr>
                    </#if>
                </tbody>
            </table>
        </div>
    </div>
</div>
</div> <!-- pageContent div end -->
<script type="text/javascript">
    $(function(){
        var redirectUrl = "<#if formKey??>${formKey!''}</#if>";
        
    })
    var processTaskJs = {
        _reject : function() {
            var suggestion = $("textarea[name='suggestion']",
                    $.pdialog.getCurrent()).val();
            if (suggestion && suggestion != "") {
                //驳回值为1
                $("input[name='flowMap_ispass']").val("1");
                $("#handleTaskFrom").submit();
            } else {
                alertMsg.error("驳回请填写意见!");
                return false;
            }
        }
    }
</script>